<?php if(!empty($data)){ $sku_list_tax = array();$sku_list_not_tax = array();?>
<input type="hidden" name="inbound_shipment_plan_id" class="form-control" value="<?php echo $inbound_shipment_plan_id;?>">
<table class="table table-striped  table-hover">
    <thead>
    <tr>
        <th>序号</th>
        <th>Shipmentid</th>
        <th>SKU</th>
        <th>账号</th>
        <th>站点</th>
        <th>虚拟SKU</th>
        <th>产品名称</th>
        <th>储位</th>
        <th>拣货数量</th>
        <th>是否退税</th>
        <th>销售员</th>
        <th>承运商服务</th>
    </tr>
    </thead>
    <tbody>
    <?php $i= 0; foreach($data as $_data){
        if($_data['quantity']==0){ continue;}
    ?>
    <tr>
        <td><?php echo $i++;?></td>
        <td><?php echo $_data['shipmentid']?></td>
        <td><?php echo $_data['sku'];$_data['export_tax_rebate'] == 1?$sku_list_tax[]
        = $_data['sku']:$sku_list_not_tax[] = $_data['sku']?></td>
        <td><?php echo $_data['account_name']?></td>
        <td><?php echo $_data['site_id']?></td>
        <td><?php echo $_data['sku_virtual']?></td>
        <td><?php echo $_data['sku_name']?></td>
        <td><?php echo $_data['position']?></td>
        <td><?php echo $_data['quantity']?></td>
        <td><?php echo $_data['export_tax_rebate'] == 0?'非退税' : '退税';?></td>
        <td><?php echo $_data['create_user_id']?></td>
        <td><?php echo $_data['carrier_service_id']?></td>
    </tr>
    <?php }?>
    </tbody>
</table>
        <?php if(!empty($sku_list_tax)) {
            $list_tax_tr = '';
            foreach($sku_list_tax as $_sku_list_tax)
            {
                $list_tax_tr .= "<option value=".$_sku_list_tax.">".$_sku_list_tax."</option>";
            }
        }

if(!empty($sku_list_not_tax)) {
$list_not_tax = '';
foreach($sku_list_not_tax as $_list_not_tax)
{
$list_not_tax .= "<option value=".$_list_not_tax.">".$_list_not_tax."</option>";
}
}

?>
        <input type="hidden" value="<?php print_r($list_tax_tr)?>" name="sku_list_tax">
        <input type="hidden" value="<?php echo $data[0]['site_id']?>" name="site">
        <input type="hidden" value="<?php print_r($list_not_tax)?>" name="sku_list_not_tax">
<?php }?>
